package com.sf.dlb.jpa.repository;

import com.sf.dlb.jpa.model.WalletTopupInfo;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;


/**
 * 充值记录表 Repository
 *
 * Created by jing.tan on 2018/5/21.
 */
@Repository
public interface WalletTopupRepository extends JpaRepository<WalletTopupInfo, Long> {
    /**
     * 根据用户查询-分页
     * @param userId
     * @param delFlag
     * @return
     */
    Page<WalletTopupInfo> findByUserIdAndDelFlag(String userId, String delFlag, Pageable pageable);
    /**
     * 根据用户查询
     * @param userId
     * @param delFlag
     * @return
     */
    List<WalletTopupInfo> findByUserIdAndDelFlag(String userId, String delFlag);
}